// import '@/assets/global.css'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import zhCn from 'element-plus/es/locale/lang/zh-cn'
// import { createApp } from 'vue'
// import App from './App.vue'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import Login from "@/components/Login.vue";
// import Manager from "@/components/Manager.vue";
//
// // 创建应用实例
// //const app = createApp(App)
// const app = createApp(Manager)
// app.use(ElementPlus)
//
// // 注册所有图标
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//     app.component(key, component)
// }
//
// // 使用 ElementPlus
// app.use(ElementPlus, {
//     locale: zhCn,
// })
//
// // 挂载应用
// app.mount('#app')

import '@/assets/global.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { createApp } from 'vue'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { router } from './router'  // 导入路由配置

// 创建应用实例
const app = createApp(App)

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 使用 ElementPlus
app.use(ElementPlus, {
    locale: zhCn,
})

// 使用路由
app.use(router)

// 挂载应用
app.mount('#app')